package com.fairytask.tools
{
	/**
	 * 货币工具 
	 * @author xujh
	 * 
	 */
	public class MoneyTools
	{
		public function MoneyTools()
		{
		}
		
		/**
		 * 设置金钱,万，亿
		 * 
		 */
		public static function setMoney(val:int):String
		{
			var str	:String = "";
			if(val < 10000)
			{
				str = String(val);
			}
			/*else if(val >= 100000000)
			{
			str = Math.floor(val/100000000) + "亿";
			}*/
			else
			{
				str = Math.floor(val/10000) + "万";
			}
			return str;
		}
	}
}